home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac-Source 1994 July
/
Mac-Source_July_1994.iso
/
Apple Script
/
addons
/
OSA Menu
/
OSA Menu 1.0 Docs
< prev
Wrap
Text File
|
1994-01-21
|
11KB
|
234 lines
OSA Menu 1.0
Written by Leonard Rosenthol
Copyright ©1992-1994, Leonard Rosenthol.
Installation:
If you are reading this, you've probably already done half the
installation!
The only other thing to do is to drag the OSA Menu icon over your System
folder. Doing so will cause the Finder to inform you that “Extensions go
in the Extensions folder” - this is a good thing, and you should click the
“OK” button. Now restart your Mac, and you'll be all ready to use OSA
Menu.
Description:
The OSA Menu is an iconic system menu (like the Help menu) that appears on
the right side of the menu bar. Its menu items are scripts: choose an item
from the menu and the script will run. Some commands are always available,
and some are only available within particular applications.
Generally the target of the script is the active application, and scripts
that operate on the user selection are particularly useful. Scripts in the
OSA Menu act like extensions to the command set of the application.
The main advantage to scripts in the menu is that they’re very lightweight.
You can call them up with one mouse click without leaving your current
context for the Finder
This is most useful in applications that are scriptable (like Aladdin
Systems' new SITcomm), but require you to switch to another application.
BUT NO MORE!! Now you can just choose the script you want to run from the
OSA Menu.
The scripts live in a folder called "Scripts" in your System folder, and
each application gets its own subfolder of the "Scripts" folder with the
scripts specific to that application as well as a "Universal Scripts"
folder for scripts that you wish to access in all applications.
What's in the Menu:
The menu has three parts:
* On top are the fixed commands. Right now there’s only one: the “About OSA
Menu” command that displays an About box.
* Below those are the universal scripts, which always appear.
* At the bottom are the scripts for the active application.
At the end of each set of scripts is an underlined command that, when
chosen, tells the Finder to open the folder for those scripts. For
instance, when SITcomm is active there is an “Open SITcomm Scripts Folder”
command that opens the “SITcomm Scripts” folder.
These folders are like the Apple Menu Items folder: any script files placed
in them immediately appear in the scripting menu. (They must be compiled
scripts (including Applets and Droplets), not text files.)
Command Keys:
It is possible to assign a command key to a script by using a special
naming convention. If the name of a script ends with a '\' followed by
another character, then that character will be used as the command key for
the script. For example, the script named "Time Check\T" will have a
command key of "T" in the menu.
Use of option or control characters in a menu name is not officially
supported, due to a limitation of the Macintosh Menu Manager. They MAY
work, but if they don't, I am sorry and I have no plans to fix it!!
Special Features:
* Any of the subfolders of the Scripts folder, or any particular script,
can be an alias. This is very useful for network installations so that all
users can have the same scripts in their menus.
* If you hold down the Option key when selecting a script from the menu,
instead of running the script, the Script Editor will be launched (if not
already running) and the script will be opened for editing.
* If you hold down the Shift key when selecting a script from the menu,
instead of running the script, the Finder will come to the front with the
script selected.
System Requirements:
OSA Menu requires System 7 and an OSA compliant scripting language
(AppleScript, Userland Frontier, QuicKeys 3, tclScript, etc.). OSA Menu
is 32-bit clean, ‘040 cache, AV and virtual memory compatible. It other
words, as long as you have System 7 and a scripting language it will work!
Caveats:
* If you move the Scripts folder after the Mac starts up, the folder will
not able to be found by the OSA Menu and you're scripts won't work. So,
don't move it!
Troubleshooting:
I hope that you won't have any problems with OSA Menu, but if you do you
can contact me using any of the following means:
Leonard Rosenthol
AppleLink: MACgician
America Online: MACgician
Internet: leonardr@netcom.com
*** DO NOT CONTACT ALADDIN SYSTEMS ABOUT THIS PRODUCT ***
They have nothing to do with it, other than letting me release to you for
free, so please send all comments, suggestions, complaints, large sums of
money, single jewish women, etc. to me personally!
Version History:
1.0 - First public release (1/21/94)
Thanks to:
Richard Clark - for writing the original "Scripting Menu" at MacHack '92.
Jens Alfke - for writing the "Scripting Menu" that Apple never shipped, and
for pioneering some techniques.
Don Olson - for helping out with OSA questions & being an all around dude &
1/2!
Chris Borton - for hassling me to get a "real" icon!
Aladdin Systems - for letting me work on this and release it to the world!
Apple Computer - for NOT shipping their "Scripting Menu", so that I could
do mine
The AppleScript Team, Dave Winer, Doug Baron, Don Brown, and Tim Endres-
for their respective OSA compliant environments w/o which this program
wouldn't make any sense!
All my beta testers - for reporting bugs that I had to fix so you wouldn't
find them!
Legal Stuff:
Although copyrighted, this software is being licensed to you for your use
free of charge. However, ownership of and interest in this software shall
remain with the author. Use and distribution of this software is governed
by the following terms in an effort to reasonably ensure that this software
will remain freely available and that no one other than the author will
derive a commercial benefit from distributing this software.
LICENSE AGREEMENT
“You,” “your,” and the “user” refers to any person or entity which acquires
or uses this software.
“Software” refers to any computer programs identified at the start of this
documentation file, together with all codes, techniques, software tools,
formats, designs, concepts, methods, ideas, and documentation associated
with the computer program(s). The term also includes all copies of any
part of the software and documentation.
“Author” refers to the author of this software, Leonard Rosenthol.
This software is owned by the author and contains valuable and proprietary
information of the author. If you violate any part of this agreement, your
right to use this software terminates automatically. In the event of
termination of this agreement, you must destroy all copies of this software
and derivatives of this software in your possession and cease distributing
the same.
This software is being licensed to you as provided by the terms of this
agreement.
You may:
1. Use this software on as many computers as you want at any given time.
2. Make as many backup copies of this software as you want.
3. Alter the software in any manner you see fit FOR YOUR OWN PERSONAL USE.
Such altered versions should not be distributed. The creation of such
derivatives shall not diminish the author's title to this software.
4. Terminate this agreement at any time by destroying all copies of this
software and derivatives of this software and cease distributing the same.
You may not:
1. Create any derivative works from this software for distribution.
2. Reverse engineer, disassemble, decompile, or otherwise attempt to
discover the logic or source code to this software.
OSA Menu may be distributed for non-commercial purposes.
It may also be freely distributed via wire or electronic communications
(BBS's and online information systems) for the sole purpose of use by their
customers.
Contact Leonard Rosenthol at the addresses within this document if you wish
to distribute this software in a compilation or for commercial usage, or if
you have any questions about its redistribution.
Disclaimer of warranty:
In using this software, you understand and agree that this software is
provided “as is” without warranty of any kind. The entire risk as to the
results and performance of using this software lies entirely with you, the
user. The author does not make any warranties, either expressed or
implied, including but not limited to implied warranties of merchantability
and fitness for a particular purpose, with respect to this software.
In no event shall the author be liable for any consequential, incidental,
or special damages whatsoever (including without limitation damages for
loss of critical data, loss of profits, interruption of business, and the
like) arising out of the use or inability to use this software. Because
some states do not allow the exclusion or limitation of liability for
consequential or incidental damages, the above limitations may not apply to
you.
Although the author would appreciate any feedback and bug reports, the
author shall not be responsible for correcting any problems which you
discover or otherwise help you maintain and use this software.
Furthermore, the author may at any time replace, modify, alter, improve,
enhance or change this software.
Complete agreement:
This agreement constitutes the entire agreement and supersedes any prior
agreements between you and the author concerning this software. This
agreement cannot be amended, modified, or waived except in writing.
General:
If any provision of this agreement shall be found to be unenforceable, it
shall be deemed severed from the remainder of this agreement.
This agreement shall be construed in accordance with the laws of the State
of California. Any arbitration or litigation relating to this agreement
shall take place in the State of California. The parties further submit to
waive any objections to personal jurisdiction of and venue in any of the
following forums: U.S. District Court for the Northern District of
California, California Superior Court for Santa Cruz County, Santa Cruz
County Municipal Court or any other forum in Santa Cruz County, for any
litigation arising out of this agreement.
U.S. GOVERNMENT RESTRICTED RIGHTS
This Software is provided with RESTRICTED RIGHTS. Use, duplication, or
disclosure by the government is subject to restrictions set forth in
subparagraph (c)(1)(ii) of the Rights in Technical Data and Computer
Software clause at 48 CFR 252.227-7013, or in subparagraphs (a) through (d)
of the Commercial Computer Software Restricted Rights clause at 48 CFR
52.227-19, as applicable. The contractor/manufacturer is Leonard
Rosenthol.
All trademarks are held by their respective owners.